package com.heima.model.comment.dtos;
import com.heima.model.common.validator.ValidatorAdd;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
public class CommentSaveDTO {
    /**
     * 文章id
     */
   // @NotBlank(message = "文章id不能为空", groups = {ValidatorAdd.class})
    private Long articleId;
    /**
     * 评论内容
     */
    @Length(min = 0,max = 140,message = "评论内容不能大于140个字符",groups = {ValidatorAdd.class})
    private String content;
}